package com.aier.admin_new.entity;

import java.sql.Timestamp;
import java.util.List;

public class Dynamic implements java.io.Serializable {

    /**
     * 动态实体
     */
    private static final long serialVersionUID = 1L;
    
    private Long did;  // 主键
    private Long uid;  // 发布动态的用户id
    private Integer sid;  // 学校id(学校动态)
    private Long cid;  // 班级id(班级动态)
    private String content;  // 动态内容
    private String img;  // 动态的图片
    private Short type;  // 类型(1校园动态2班级动态3个人动态)
    private Short original;  // 是否是原创 0原创1转发
    private Long relativeid;  // 原创动态的id
    private Integer pcount;  // 赞的次数
    private Integer tcount;  // 转发的次数
    private Integer ccount;  // 评论的次数
    private Timestamp cdate;  // 发布时间
    private String nickname;  // 昵称
    private String headimg;  // 头像
    private Dynamic dynamic;  // 原创动态
    private Short pflag;  // 登录用户是否赞过
    private List<DynamicComment> dcList;  // 评论列表

    // Constructors

    /** default constructor */
    public Dynamic() {
        super();
    }

    public Long getDid() {
        return did;
    }

    public void setDid(Long did) {
        this.did = did;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public Short getOriginal() {
        return original;
    }

    public void setOriginal(Short original) {
        this.original = original;
    }

    public Long getRelativeid() {
        return relativeid;
    }

    public void setRelativeid(Long relativeid) {
        this.relativeid = relativeid;
    }

    public Integer getPcount() {
        return pcount;
    }

    public void setPcount(Integer pcount) {
        this.pcount = pcount;
    }

    public Integer getTcount() {
        return tcount;
    }

    public void setTcount(Integer tcount) {
        this.tcount = tcount;
    }

    public Integer getCcount() {
        return ccount;
    }

    public void setCcount(Integer ccount) {
        this.ccount = ccount;
    }

    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public Dynamic getDynamic() {
        return dynamic;
    }

    public void setDynamic(Dynamic dynamic) {
        this.dynamic = dynamic;
    }

    public Short getPflag() {
        return pflag;
    }

    public void setPflag(Short pflag) {
        this.pflag = pflag;
    }

    public List<DynamicComment> getDcList() {
        return dcList;
    }

    public void setDcList(List<DynamicComment> dcList) {
        this.dcList = dcList;
    }


}